<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\GoldChild
 *
 * @property int $id
 * @property int $user_id
 * @property int $records_children_count
 * @property int $more_than_last_day
 * @property int $more_than_first_day
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Models\User|null $user
 * @method static \Database\Factories\GoldChildFactory factory(...$parameters)
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild query()
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild whereMoreThanFirstDay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild whereMoreThanLastDay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild whereRecordsChildrenCount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|GoldChild whereUserId($value)
 * @mixin \Eloquent
 */
class GoldChild extends Model
{
    use HasFactory;
    
    protected $guarded = ['id'];
    
    public function user()
    {
    	return $this->belongsTo(User::class, 'user_id', 'id');
    }
}
